from flask import Flask

from config.config import config, create_route_json, create_defaut_url
from route.route import add_route

app = Flask(__name__)
create_route_json()
create_defaut_url()
app.config.from_object(config)
add_route(app)

if __name__ == '__main__':
    # https
    app.run(host='0.0.0.0', port=443, ssl_context='adhoc')
    # http
    # app.run(port=7000)
